import request from '@/utils/request'

export function getList(data, pagination) {
  if (pagination) {
    data["pageIndex"] = pagination.pageIndex;
    data["pageSize"] = pagination.pageSize;
  }
  return request({
    url: '/api/v1/PermissionUser/GetList',
    method: 'get',
    params: data
  })
}

// 原modulepermission下接口
export const getUserListNoPage = (params) =>
  request("api/v1/PermissionUser/GetUserListNoPage", { params: params });
